﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CSharp.Libs.Koc;


namespace AutoKoc_AllianceListerMapView
{
    /// <summary>
    /// Interaktionslogik für MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private Kernel _KRNL = null;

        public MainWindow()
        {
            InitializeComponent();

            _KRNL = new Kernel();

            //this.allianceList1.Initialize(this.autoKocBrowser1.KRNL);
            this.allianceList1.Initialize(_KRNL);
            this.allianceCompareList1.Initialize(this.allianceList1.AMVVM);
            this.mapView1.Initialize(this.allianceList1.AMVVM.MapViewVM);

            this.grpInfo.DataContext = _KRNL.IVM;
            //this.lblWholeWindow.DataContext = _KRNL.SAVM;

            Label lblWholeWin = new Label();
            grdMain.Children.Add(lblWholeWin);
            lblWholeWin.Background = Brushes.White;
            lblWholeWin.FontSize = 28;
            lblWholeWin.FontWeight = FontWeights.Bold;
            lblWholeWin.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            lblWholeWin.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            lblWholeWin.DataContext = _KRNL.SAVM;
            lblWholeWin.SetBinding(Label.ContentProperty, "LabelText");
            lblWholeWin.SetBinding(Label.VisibilityProperty, "LabelVisible");
            Grid.SetRowSpan(lblWholeWin, 9);
            Grid.SetColumnSpan(lblWholeWin, 9);
        }
    }
}
